package org.easyframework.util;

public class ClassUtils {

    public static ClassLoader getDefaultClassLoader(){
        ClassLoader classLoader=null;
        try{
            classLoader= Thread.currentThread().getContextClassLoader();
        }catch (Exception ex){

        }
        if (classLoader==null){
            classLoader=ClassUtils.class.getClassLoader();
            if (classLoader==null){
                try{
                    classLoader=ClassLoader.getSystemClassLoader();
                }catch (Exception e){

                }
            }
        }
        return classLoader;
    }
}
